package com.heima.test1;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class Test01 {
    public static void main(String[] args) throws IOException {
        Dog dog = new Dog();
        ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("d.txt"));
        oos.writeObject(dog);
    }
}
